package {
	import com.greensock.TweenLite;
	import com.greensock.TweenMax;
	import flash.display.Loader;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.net.URLRequest;

	/**
	 * @author ase7en
	 */
	public class Test extends Sprite {
		private var loader:Loader;
		private var a:Array = [1, 2, 3, 4];
		public function Test() {
			
			//TweenMax.to(this, 0.25, { alpha:0, yoyo:true,repeat:3 } );
			//drwa();
			loader = new Loader();
			loader.load(new URLRequest("lift.swf"));
			loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCom);
		}
		
		private function drwa():void
		{
			this.graphics.beginFill(0xFF0000, 1);
			this.graphics.drawCircle(50, 50, 50);
			this.graphics.endFill();
		}
		
		private function onCom(e:Event):void 
		{
			trace("com");
			this.addChild(loader);
		}
		
		
//		public function function 
		
		
	}
}
